package com.tj.collection.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.stereotype.Component;

@Component
public class NacosValueConfig {

    @NacosValue(value = "${server.test:false}", autoRefreshed = true)
    private boolean isServerTest;


    @NacosValue(value = "${server.test:aa}", autoRefreshed = true)
    private String loginWhiteAccountList;

    public boolean isServerTest() {
        return isServerTest;
    }

    public NacosValueConfig setServerTest(boolean serverTest) {
        isServerTest = serverTest;
        return this;
    }

    public String getLoginWhiteAccountList() {
        return loginWhiteAccountList;
    }

    public NacosValueConfig setLoginWhiteAccountList(String loginWhiteAccountList) {
        this.loginWhiteAccountList = loginWhiteAccountList;
        return this;
    }
}
